/**
* 作者: hxl
* 日期: 2024-10-16 16:10:55
* 备注: 秘书表
*/
package com.motu.monstercity.server.game.commondata.secretary;

import io.vertx.core.json.JsonObject;

public class SecretaryMainModel {
	protected int secretaryId; // 数据库ID
	protected String name; // 秘书名称
	protected int disposition; // 性格类型 (性格类型（1开朗，2坚毅，3沉稳，4果断，5勇敢）)
	protected int quality; // 秘书品质 (品质类型(1N，2R，3SR，4SSR，5UR))
	protected int gender; // 秘书性别 ((1男，0女))
	protected String secretarySpine; // 秘书spine资源名称
	protected int favoriteValue; // 秘书初始喜爱值 (影响该秘书后代所提供的收益)
	protected int charmValue; // 秘书初始魅力值 (影响与该秘书约会后所获得的约会经验)
	protected String secretaryRelation; // 秘书伙伴羁绊
	protected int resourceId; // 资源文件id
	protected int identitySkill; // 秘书美名技能 (Skill表的skill_id字段)
	protected String identitySkillUpdate; // 秘书美名技能升级
	protected String suitId; // 秘书服装 (消耗对应店铺经营经验可升级潜力技能)
	protected String des; // 秘书描述
	protected String getWay; // 获取途径 (PartnerGetWay表的id)
	protected int limited; // 秘书类型 (0普通，1限定【可根据limited_param配置开启时间】，2联动【可根据limited_param配置开启时间】）)
	protected int limitedParam; // 配置开启时间
	protected int partnerSwitch; // 秘书开关 (控制这只秘书要不要出现在游戏中)
	protected int sortId; // 秘书排序
	protected int identity; // 初始基因等级
	protected String childhoodHead; // 幼年头部
	protected String adultHead; // 成年头部

	public SecretaryMainModel() {
	}

	public SecretaryMainModel(JsonObject obj) {
		secretaryId = obj.containsKey("secretary_id") ? obj.getInteger("secretary_id") : 0;
		name = obj.containsKey("name") ? obj.getString("name") : "";
		disposition = obj.containsKey("disposition") ? obj.getInteger("disposition") : 0;
		quality = obj.containsKey("quality") ? obj.getInteger("quality") : 0;
		gender = obj.containsKey("gender") ? obj.getInteger("gender") : 0;
		secretarySpine = obj.containsKey("secretary_spine") ? obj.getString("secretary_spine") : "";
		favoriteValue = obj.containsKey("favorite_value") ? obj.getInteger("favorite_value") : 0;
		charmValue = obj.containsKey("charm_value") ? obj.getInteger("charm_value") : 0;
		secretaryRelation = obj.containsKey("secretary_relation") ? obj.getString("secretary_relation") : "";
		resourceId = obj.containsKey("resource_id") ? obj.getInteger("resource_id") : 0;
		identitySkill = obj.containsKey("identity_skill") ? obj.getInteger("identity_skill") : 0;
		identitySkillUpdate = obj.containsKey("identity_skill_update") ? obj.getString("identity_skill_update") : "";
		suitId = obj.containsKey("suit_id") ? obj.getString("suit_id") : "";
		des = obj.containsKey("des") ? obj.getString("des") : "";
		getWay = obj.containsKey("get_way") ? obj.getString("get_way") : "";
		limited = obj.containsKey("limited") ? obj.getInteger("limited") : 0;
		limitedParam = obj.containsKey("limited_param") ? obj.getInteger("limited_param") : 0;
		partnerSwitch = obj.containsKey("partner_switch") ? obj.getInteger("partner_switch") : 0;
		sortId = obj.containsKey("sort_id") ? obj.getInteger("sort_id") : 0;
		identity = obj.containsKey("identity") ? obj.getInteger("identity") : 0;
		childhoodHead = obj.containsKey("childhood_head") ? obj.getString("childhood_head") : "";
		adultHead = obj.containsKey("adult_head") ? obj.getString("adult_head") : "";
	}

	public int getSecretaryId() {
		return secretaryId;
	}

	public String getName() {
		return name;
	}

	public int getDisposition() {
		return disposition;
	}

	public int getQuality() {
		return quality;
	}

	public int getGender() {
		return gender;
	}

	public String getSecretarySpine() {
		return secretarySpine;
	}

	public int getFavoriteValue() {
		return favoriteValue;
	}

	public int getCharmValue() {
		return charmValue;
	}

	public String getSecretaryRelation() {
		return secretaryRelation;
	}

	public int getResourceId() {
		return resourceId;
	}

	public int getIdentitySkill() {
		return identitySkill;
	}

	public String getIdentitySkillUpdate() {
		return identitySkillUpdate;
	}

	public String getSuitId() {
		return suitId;
	}

	public String getDes() {
		return des;
	}

	public String getGetWay() {
		return getWay;
	}

	public int getLimited() {
		return limited;
	}

	public int getLimitedParam() {
		return limitedParam;
	}

	public int getPartnerSwitch() {
		return partnerSwitch;
	}

	public int getSortId() {
		return sortId;
	}

	public int getIdentity() {
		return identity;
	}

	public String getChildhoodHead() {
		return childhoodHead;
	}

	public String getAdultHead() {
		return adultHead;
	}

}
